as_start_pos = [as_map_x + random as_map_w, as_map_y + random as_map_h];
while{!([as_start_pos, 3] call fn_checkPos) || {[as_start_pos, 1000, "mk_"] call fn_checkNearMarker}}do
{
	as_start_pos = [as_map_x + random as_map_w, as_map_y + random as_map_h];
};

publicVariable "as_start_pos";


//_____________________________清障碍物_____________________________
[as_start_pos, 20] call fn_cleanupTerrain;

//创建飞机残骸
private _veh_pos = as_start_pos getPos [20,0];
private _veh = "O_T_VTOL_02_infantry_dynamicLoadout_F" createVehicle _veh_pos;
clearItemCargoGlobal _veh;
_veh setDamage [0.9, true];

//_veh = "MapBoard_Tanoa_F" createVehicle (as_start_pos getPos [10,0]);

private _box = "CargoNet_01_box_F" createVehicle as_start_pos;
//________________________________________添加物品____________________________
_box addItemCargoGlobal ["arifle_CTAR_ghex_F", 1];
_box addItemCargoGlobal ["30Rnd_580x42_Mag_F", 3];
_box addItemCargoGlobal ["MiniGrenade", 8];
_box addItemCargoGlobal ["SatchelCharge_Remote_Mag", 1];
_box addItemCargoGlobal ["ClaymoreDirectionalMine_Remote_Mag", 2];
_box addItemCargoGlobal ["optic_Arco_ghex_F", 1];
_box addItemCargoGlobal ["U_O_OfficerUniform_ocamo", 1];

if(Param_WeaponStart == 1) then
{
	[_box, 2] call fn_createSupply;
}
else
{
	[_box, 1] call fn_createSupply;
};

if(Param_Version >= 183) then
{
	_box addItemCargoGlobal ["H_Beret_CSAT_01_F", 9];
};



sleep 60 + random 60;
_veh setDamage [1.0, true];
_veh removeAction 0;


